
<script language="javascript">
<!--
function f_setGrid() {
	//alert(document.forms(formName).ActionType.value);
	f_insertTxtMemo();
}	
/**
*/
function f_doOtherKey() {
	var keyCode = event.keyCode;
	if (keyCode == "13" && event.ctrlKey == true) f_gridsave();
	if (keyCode == "13") return false;
}

/**
*/
function f_keydown_key() {
	var srcObj = event.srcElement;
	if (event.keyCode == "13") {
		if (srcObj.tagName == "INPUT") f_setBillCode(srcObj);
		return false;
	}

	return true;
}





/**
*/
function f_showType() {
	var org_where_sql = document.all("orgwhere_sql").value;
	var org_where_value = document.all("orgwhere_value").value;
	var org_where_type = document.all("orgwhere_type").value;

	//
	var where_sql = document.all("where_sql").value;
	var where_value = document.all("where_value").value;
	var where_type = document.all("where_type").value;

	//
	var give_type = document.all("sel.give_type").value;
  

	if (org_where_sql == "") {
		document.all("orgwhere_sql").value = where_sql;
		document.all("orgwhere_value").value = where_value;
		document.all("orgwhere_type").value = where_type;
s
		document.all("where_sql").value = where_sql + " and give_type = ? ";
		document.all("where_value").value = where_value + ";" + give_type;
		document.all("where_type").value = where_type + ";string";
	} else {
		document.all("where_sql").value = org_where_sql + " and give_type = ? ";
		document.all("where_value").value = org_where_value + ";" + give_type;
		document.all("where_type").value = org_where_type + ";string";
	}

	f_reloadPage();
}
/**
*/
function f_showMode() {
	var org_where_sql = document.all("orgwhere_sql").value;
	var org_where_value = document.all("orgwhere_value").value;
	var org_where_type = document.all("orgwhere_type").value;

	//
	var where_sql = document.all("where_sql").value;
	var where_value = document.all("where_value").value;
	var where_type = document.all("where_type").value;

	//
	var price_mode = document.all("sel.price_mode").value;
  
      if (org_where_sql == "") {
		document.all("orgwhere_sql").value = where_sql;
		document.all("orgwhere_value").value = where_value;
		document.all("orgwhere_type").value = where_type;

		document.all("where_sql").value = where_sql + " and price_mode = ? ";
		document.all("where_value").value = where_value + ";" + price_mode;
		document.all("where_type").value = where_type + ";string";
	} else {
		document.all("where_sql").value = org_where_sql + " and price_mode = ? ";
		document.all("where_value").value = org_where_value + ";" + price_mode;
		document.all("where_type").value = org_where_type + ";string";
	}

	f_reloadPage();
}
document.onkeydown = f_doOtherKey;
//-->
</script>
<eam:message key="column.gas_sell_total.give_type" />: 
<select name="sel.give_type" id="sel.give_type" onchange="f_showType()">
<option value=""></option>
<option value="00"><eam:message key="give_type1" /></option>
<option value="01"><eam:message key="give_type2" /></option>
<option value="02"><eam:message key="give_type3" /></option>
</select>

<eam:message key="column.gas_sell_total.price_mode" />: 
<select name="sel.price_mode" id="sel.price_mode" onchange="f_showMode()">
<option value="">   </option>
<option value="01"><eam:message key="aprice_mode1" /></option>
<option value="02"><eam:message key="aprice_mode2" /></option>
</select>

